From: Gabriel Wicke Date: Sat, 10 Apr 2004 18:03:25 +0000 (+0000) Subject: no doBlockLevels when parsing included messages X-Git-Tag: 1.3.0beta1~470 X-Git-Url: http://git.cyclocoop.org/%22.%24info%5B?a=commitdiff_plain;h=38355c2d1833b17d215a7875b402b4f44060f611;p=lhc%2Fweb%2Fwiklou.git no doBlockLevels when parsing included messages --- diff --git a/includes/Parser.php b/includes/Parser.php index 3bf6485743..c5139143f8 100644 --- a/includes/Parser.php +++ b/includes/Parser.php @@ -92,6 +92,8 @@ class Parser $stripState = NULL; $text = $this->strip( $text, $this->mStripState ); $text = $this->doWikiPass2( $text, $linestart ); + # needs to be called last + $text = $this->doBlockLevels( $text, $linestart ); $text = $this->unstrip( $text, $this->mStripState ); # Clean up special characters $fixtags = array( @@ -502,9 +504,6 @@ class Parser $text .= $this->categoryMagic () ; - # needs to be called last - $text = $this->doBlockLevels( $text, $linestart ); - wfProfileOut( $fname ); return $text; } @@ -1386,7 +1385,7 @@ class Parser # Run full parser on the included text $text = $this->strip( $text, $this->mStripState ); - $text = $this->doWikiPass2( $text, true ); + $text = $this->doWikiPass2( $text, true ); # Add the result to the strip state for re-inclusion after # the rest of the processing